package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Author: liangSY
 * @Date: 2021/6/22
 * @ClassName: UpdateRoleDto
 * @Description: UpdateRoleDto描述
 */
@Data
@Builder
@ApiModel("修改角色相关参数")
public class UpdateRoleDto {

    @NotBlank(message = "请确认需要修改的权限")
    @ApiModelProperty("角色id")
    private String id;

    @NotBlank(message = "角色参数不能为空")
    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色编码")
    private String roleCode;

    @ApiModelProperty("角色描述")
    private String remark;

    @ApiModelProperty("权限")
    List<String> permissions;
}
